package com.example.bean;

import java.util.HashMap;
import java.util.Map;

@SuppressWarnings("rawtypes")
public class ActionResult {

    private boolean success;
    private Map errMsg;
    private Map successMsg;
    private Object rtnVal;

    public ActionResult(boolean flag) {
        this.success = flag;
        this.errMsg = new HashMap();
        this.successMsg = new HashMap();
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Map getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(Map errMsg) {
        this.errMsg = errMsg;
    }

    public Object getRtnVal() {
        return rtnVal;
    }

    public void setRtnVal(Object rtnVal) {
        this.rtnVal = rtnVal;
    }

    public Map getSuccessMsg() {
        return successMsg;
    }

    public void setSuccessMsg(Map successMsg) {
        this.successMsg = successMsg;
    }
}
